package modelLayer;

import java.util.ArrayList;

public class Machine
{
    private String name;
    private int barcode;
    private double pricePerDay;
    public ArrayList<Item> items;
    private int itemsNo;
    
    public Machine(String name, int barcode, double pricePerDay){
        this.name = name;
        this.barcode = barcode;
        this.pricePerDay = pricePerDay;
        items = new ArrayList<>();
    }
    
    public void setName(String name){
        this.name = name;
    }
    
    public String getName(){
        return name;
    }
    
    public void setBarcode(int barcode){
        this.barcode = barcode;
    }
    
    public int getBarcode(){
        return barcode;
    }
    
    public void setPricePerDay(double pricePerDay){
        this.pricePerDay = pricePerDay;
    }
    
    public double getPricePerDay(){
        return pricePerDay;
    }
    
    public void setItemsNo(int no) {
        this.itemsNo = no;
    }
    
    public int getItemsNo() {
        return itemsNo;
    }
}